package com.zprmb.udzt.bean;

import java.util.ArrayList;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

public class V4InfoBean {

	public ArrayList<ProductV4_Bean> pb = null;
	public ArrayList<DexterityShouyi_Bean> db = null;
	public ArrayList<ProductV4End_Bean> eb = null;
	public ArrayList<MoneyInvest_Bean> mb = null;
	public ArrayList<Referrer_Bean> rb = null;
	public ArrayList<JiLu_Bean> jb = null;
	public ArrayList<InvestYY_Bean> iyyb = null;
	public ArrayList<InvestFL_Bean> iflb = null;
	public ArrayList<InvestDT_Bean> idtb = null;
	public ArrayList<DexterityBill_Bean> dbb = null;
	
	public V4InfoBean parseJSON_dexteritybill(JSONArray json) {
		dbb = new ArrayList<DexterityBill_Bean>();
		try {
			for (int i = 0; i < json.length(); i++) {
				JSONObject object = (JSONObject) json.get(i);
				DexterityBill_Bean item = new DexterityBill_Bean();
				item.parseJSON(object);
				dbb.add(item);
			}
		} catch (JSONException e) {
			e.printStackTrace();
		}
		return this;
	}
	
	public V4InfoBean parseJSON_investdt(JSONArray json) {
		idtb = new ArrayList<InvestDT_Bean>();
		try {
			for (int i = 0; i < json.length(); i++) {
				JSONObject object = (JSONObject) json.get(i);
				InvestDT_Bean item = new InvestDT_Bean();
				item.parseJSON(object);
				idtb.add(item);
			}
		} catch (JSONException e) {
			e.printStackTrace();
		}
		return this;
	}
	
	public V4InfoBean parseJSON_investfl(JSONArray json) {
		iflb = new ArrayList<InvestFL_Bean>();
		try {
			for (int i = 0; i < json.length(); i++) {
				JSONObject object = (JSONObject) json.get(i);
				InvestFL_Bean item = new InvestFL_Bean();
				item.parseJSON(object);
				iflb.add(item);
			}
		} catch (JSONException e) {
			e.printStackTrace();
		}
		return this;
	}
	
	public V4InfoBean parseJSON_investyy(JSONArray json) {
		iyyb = new ArrayList<InvestYY_Bean>();
		try {
			for (int i = 0; i < json.length(); i++) {
				JSONObject object = (JSONObject) json.get(i);
				InvestYY_Bean item = new InvestYY_Bean();
				item.parseJSON(object);
				iyyb.add(item);
			}
		} catch (JSONException e) {
			e.printStackTrace();
		}
		return this;
	}

	public V4InfoBean parseJSON_jilu(JSONArray json, String type) {
		jb = new ArrayList<JiLu_Bean>();
		try {
			for (int i = 0; i < json.length(); i++) {
				JSONObject object = (JSONObject) json.get(i);
				JiLu_Bean item = new JiLu_Bean();
				item.parseJSON(object,type);
				jb.add(item);
			}
		} catch (JSONException e) {
			e.printStackTrace();
		}
		return this;
	}

	public V4InfoBean parseJSON_referrer(JSONArray json) {
		rb = new ArrayList<Referrer_Bean>();
		try {
			for (int i = 0; i < json.length(); i++) {
				JSONObject object = (JSONObject) json.get(i);
				Referrer_Bean item = new Referrer_Bean();
				item.parseJSON(object);
				rb.add(item);
			}
		} catch (JSONException e) {
			e.printStackTrace();
		}
		return this;
	}

	public V4InfoBean parseJSON_1(JSONArray json) {
		pb = new ArrayList<ProductV4_Bean>();
		try {
			for (int i = 0; i < json.length(); i++) {
				JSONObject object = (JSONObject) json.get(i);
				ProductV4_Bean item = new ProductV4_Bean();
				item.parseJSON(object);
				pb.add(item);
			}
		} catch (JSONException e) {
			e.printStackTrace();
		}
		return this;
	}

	public V4InfoBean parseJSON_product_end(JSONArray json) {
		eb = new ArrayList<ProductV4End_Bean>();
		try {
			for (int i = 0; i < json.length(); i++) {
				JSONObject object = (JSONObject) json.get(i);
				ProductV4End_Bean item = new ProductV4End_Bean();
				item.parseJSON(object);
				eb.add(item);
			}
		} catch (JSONException e) {
			e.printStackTrace();
		}
		return this;
	}

	public V4InfoBean parseJSON_moneyinvest(JSONArray json) {
		mb = new ArrayList<MoneyInvest_Bean>();
		try {
			for (int i = 0; i < json.length(); i++) {
				JSONObject object = (JSONObject) json.get(i);
				MoneyInvest_Bean item = new MoneyInvest_Bean();
				item.parseJSON(object);
				mb.add(item);
			}
		} catch (JSONException e) {
			e.printStackTrace();
		}
		return this;
	}

}
